home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swagg_m.zip / GRAPHICS.SWG / 0055_ModeX Scrolling.pas < prev    next >
Pascal/Delphi Source File  |  1994-01-27  |  565b  |  22 lines

  1. {
  2. > does anyone know how to scroll up or down in 320*200*256 mode ??
  3.  
  4.      Enter mode-x (look for source on any board, quite common), and
  5.      then pan the screen like this:
  6. }
  7.  
  8.      Asm
  9.       mov     bx,StartMem
  10.       mov     ah,bh
  11.       mov     al,0ch
  12.       mov     dx,3d4h
  13.       out     dx,ax
  14.       mov     ah,bl
  15.       inc     al
  16.       out     dx,ax
  17.      End;
  18. {
  19.      To begin, zero StartMem and then increase it with 80 each time -
  20.      tada - the screen pans down. Oh, btw, If I were you I would call
  21.      a sync just before running it...
  22. }